package com.spring.aop.proxy;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

class AopProxy {

	private ApplicationContext ctx;
	private UserDao userDao;
	
	{	
		ctx=new ClassPathXmlApplicationContext("com/spring/aop/proxy/ApplicationContext.xml");
		userDao=(UserDao) ctx.getBean("userDaoProxy");
	}
	
	@Test
	void test() {
		userDao.say();
	}

}
